import Taro from "@tarojs/taro";

export const getHomeList = async () => {
  let arr = await Taro.request({
    url: 'http://localhost:3000/api/HomeList',
    method: 'GET'
  })
  return arr
}


export const getBroker = async () => {
  let arr = await Taro.request({
    url: 'http://localhost:3000/api/broker',
    method: 'GET'
  })
  return arr
}

export const getBrokerList = async () => {
  let arr = await Taro.request({
    url: 'http://localhost:3000/api/brokerData',
    method: 'GET'
  })
  return arr
}

export const getBuyHouse = async () => {
  let arr = await Taro.request({
    url: 'http://localhost:3000/api/building',
    method: 'GET'
  })
  return arr
}

export const getTenement = async () => {
  let arr = await Taro.request({
    url: 'http://localhost:3000/api/building',
    method: 'GET'
  })
  return arr
}

export const getCollection = async () => {
  let arr = await Taro.request({
    url: 'http://localhost:3000/api/CollectList',
    method: 'GET'
  })
  return arr
}

export const getGroupBuy = async () => {
  let arr = await Taro.request({
    url: 'http://localhost:3000/api/Groupbuy',
    method: 'GET'
  })
  return arr
}

export const getHistory = async () => {
  let arr = await Taro.request({
    url: 'http://localhost:3000/api/History',
    method: 'GET'
  })
  return arr
}

export const getHouseType1 = async () => {
  let arr = await Taro.request({
    url: 'http://localhost:3000/api/HouseType1',
    method: 'GET'
  })
  return arr
}

export const getHouseType2 = async () => {
  let arr = await Taro.request({
    url: 'http://localhost:3000/api/HouseType2',
    method: 'GET'
  })
  return arr
}

export const getInteraction = async () => {
  let arr = await Taro.request({
    url: 'http://localhost:3000/api/Message',
    method: 'GET'
  })
  return arr
}

export const getLiveBroadcast = async () => {
  let arr = await Taro.request({
    url: 'http://localhost:3000/api/LiveBroadcast',
    method: 'GET'
  })
  return arr
}

export const getMoreInteraction = async () => {
  let arr = await Taro.request({
    url: 'http://localhost:3000/api/market',
    method: 'GET'
  })
  return arr
}

export const getMarketCircle = async () => {
  let arr = await Taro.request({
    url: 'http://localhost:3000/api/information',
    method: 'GET'
  })
  return arr
}

export const getRelease = async () => {
  let arr = await Taro.request({
    url: 'http://localhost:3000/api/releaselist',
    method: 'GET'
  })
  return arr
}

export const getPayDetail = async () => {
  let arr = await Taro.request({
    url: 'http://localhost:3000/api/PayDetail',
    method: 'GET'
  })
  return arr
}

export const getHousePrice = async () => {
  let arr = await Taro.request({
    url: 'http://localhost:3000/api/HousePrice',
    method: 'GET'
  })
  return arr
}

export const getArea = async () => {
  let arr = await Taro.request({
    url: 'http://localhost:3000/api/AreaList',
    method: 'GET'
  })
  return arr
}

export const getAddress = async () => {
  let arr = await Taro.request({
    url: 'http://localhost:3000/api/AddressList',
    method: 'GET'
  })
  return arr
}

export const getStation = async () => {
  let arr = await Taro.request({
    url: 'http://localhost:3000/api/Station',
    method: 'GET'
  })
  return arr
}

export const getRent = async () => {
  let arr = await Taro.request({
    url: 'http://localhost:3000/api/rent',
    method: 'GET'
  })
  return arr
}

export const getToBuy = async () => {
  let arr = await Taro.request({
    url: 'http://localhost:3000/api/rent',
    method: 'GET'
  })
  return arr
}

export const getTypes = async () => {
  let arr = await Taro.request({
    url: 'http://localhost:3000/api/Types',
    method: 'GET'
  })
  return arr
}


export const getAreaChoose = async () => {
  let arr = await Taro.request({
    url: 'http://localhost:3000/api/AreaChoose',
    method: 'GET'
  })
  return arr
}
